<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page import="java.util.*,cn.edu.lingnan.dto.StudentDto" %>
<%@ page import="cn.edu.lingnan.dto.CourseDto" %>
<%@ taglib uri="/jstlc" prefix="c"%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="allstu.js"></script>
    <title>显示所有课程信息</title>
    <link rel="stylesheet" type="text/css" href="table.css">
</head>
<body>
<h1>课程管理页面</h1>
<table class="hoverable" align="center">
    <tr>
        <td><input type="checkbox" onclick="allcheck(this);"></td>
        <td>xx编号</td>
        <td>xx姓名</td>
        <td>xx密码</td>
        <td>xx权限</td>
        <td><input type="button"value="批量删除"onclick="delall();"></td>
    </tr>
    <%
        Vector<CourseDto>v =(Vector<CourseDto>) session.getAttribute("allCourse");
        Iterator<CourseDto> it=v.iterator();
        CourseDto s=null;
        while(it.hasNext()){
            s=it.next();
    %>


    <tr>
        <td><input type="checkbox"name="check" value=<%=s.getCid()%>></td>
        <td><%=s.getCid()%></td>
        <td><%=s.getCname()%></td>
        <td>
            <a href="updateStu.jsp?sid=<%=s.getCid()%>">修改</a>
            <a href="deleteStu?sid=<%=s.getCname()%>">删除</a>
        </td>
    </tr>

    <%
        }
    %>
</table>
</body>
</html>